package com.example.demo.feignInterface;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 *  Created by yinyonggang on 2018/7/25.
 */
@Component("feignInterfaceClient")
@FeignClient(name = "sever-provider")
public interface FeignInterfaceClient {
	
    @RequestMapping(value = "/feigns/getRequest", method = RequestMethod.GET)
    String getRequest();
}
